<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	<ui:composition 
	  xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      template="/view/templates/templateLayout.xhtml">
      
      <ui:define name="conteudo">      	
  	  <link rel="stylesheet" type="text/css" href="./estilos.css"/>
  	  
<h:form id="formManterMarca">  
	<p:panel id="panelManterMarca" header="Manter Marca" style="margin-bottom:20px; ">  
	<f:facet name="header">
		<h:outputText value="Manter Marca" styleClass="outputTextTitulo"/>
	</f:facet>
 	<p:messages id="messages" autoUpdate="true" closable="true" /> 
    	<h:panelGrid  columns="2" style="margin-top:20px; margin-right:10%;">  
            <h:outputLabel value="Código" styleClass="outputLabel"/>  
            <h:outputLabel value="Marca*" styleClass="outputLabel"/>             
            <p:inputText value="#{marcaBean.marca.idMarca}" styleClass="inputId" disabled="true"/>  
  			<p:inputText value="#{marcaBean.marca.descricao}"  styleClass="inputDescricao" required="true" requiredMessage="Preencha o nome da Marca!"/>  
        </h:panelGrid>  
    </p:panel>  
    <p:commandButton value="Salvar" actionListener="#{marcaBean.saveMarca}" update="panelManterMarca" style="margin-right:20px; margin-left:10px;" /> 
	<p:commandButton value="Cancelar" action="#{marcaBean.consultarMarca}" immediate="true" style="margin-right:20px;" /> 
</h:form>  	


</ui:define>
</ui:composition>
